import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/control'
        },
        {
            path: '/',
            component: resolve => require(['../components/common/Home.vue'], resolve),
            meta: { title: '自述文件' },
            children:[
                {
                    path: '/control',
                    component: resolve => require(['../components/doctor/control.vue'], resolve),
                    meta: { title: '工作台' }
                },
                {
                    path: '/pending',
                    component: resolve => require(['../components/doctor/pending.vue'], resolve),
                    meta: { title: '待处理签约' }
                },
                {
                    path: '/recordsigning',
                    component: resolve => require(['../components/doctor/recordsigning.vue'], resolve),
                    meta: { title: '签约记录' }
                },
                {
                    path: '/servicelog',
                    component: resolve => require(['../components/doctor/servicelog.vue'], resolve),
                    meta: { title: '服务记录' }
                },
                {
                    path: '/addServePage',
                    component: resolve => require(['../components/page/add.vue'], resolve),
                    meta: { title: '新增服务' }
                },
                {
                    path: '/sginUp',
                    component: resolve => require(['../components/doctor/sign-up.vue'], resolve),
                    meta: { title: '服务管理' }
                },
                {
                    path: '/residentManagement',
                    component: resolve => require(['../components/doctor/resident-management.vue'], resolve),
                    meta: { title: '居民管理' }
                },
                {
                    path: '/Healthy',
                    component: resolve => require(['../components/resident/Healthy.vue'], resolve),
                   
                },
                {
                    path: '/servicePackDetail',
                    component: resolve => require(['../components/resident/servicePackDetail.vue'], resolve),
                   
                },
                {
                    path: '/servicePackDetail_two',
                    component: resolve => require(['../components/resident/servicePackDetail_two.vue'], resolve),
                   
                },
                {
                    path: '/servicePackDetail_three',
                    component: resolve => require(['../components/resident/servicePackDetail_three.vue'], resolve),
                   
                },
                {
                    path: '/organizational',
                    component: resolve => require(['../components/mange/organizational.vue'], resolve),
                    meta: { title: '机构管理' }
                },
                {
                    path: '/serviceProject',
                    component: resolve => require(['../components/mange/serviceProject.vue'], resolve),
                    meta: { title: '服务项目管理' }
                },
                {
                    path: '/doctor',
                    component: resolve => require(['../components/mange/doctor.vue'], resolve),
                    meta: { title: '医生管理' }
                },
                {
                    path: '/team',
                    component: resolve => require(['../components/mange/team.vue'], resolve),
                    meta: { title: '团队管理' }
                },
                {
                    path: '/ViewDetails',
                    component: resolve => require(['../components/doctor/ViewDetails.vue'], resolve),
                    meta: { title: '查看详情' }
                },
                {
                    path: '/ViewDetails copy',
                    component: resolve => require(['../components/doctor/ViewDetails copy.vue'], resolve),
                    meta: { title: '查看详情' }
                },
                {
                    path: '/ViewDetail copy',
                    component: resolve => require(['../components/doctor/ViewDetail copy.vue'], resolve),
                    meta: { title: '查看详情' }
                },
                {
                    path: '/ViewDetail copy2',
                    component: resolve => require(['../components/doctor/ViewDetail copy2.vue'], resolve),
                    meta: { title: '查看详情' }
                },
                {
                    path: '/ViewDetailss',
                    component: resolve => require(['../components/doctor/ViewDetailss.vue'], resolve),
                    meta: { title: '查看详情' }
                },
                {
                    path: '/ViewDetailsss',
                    component: resolve => require(['../components/doctor/ViewDetailsss.vue'], resolve),
                    meta: { title: '查看详情' }
                },
                {
                    path: '/ViewDetailssss',
                    component: resolve => require(['../components/doctor/ViewDetailssss.vue'], resolve),
                    meta: { title: '查看详情' }
                },
                {
                    path: '/add',
                    component: resolve => require(['../components/doctor/add.vue'], resolve),
                    meta: { title: '新增服务' }
                },
                {
                    path: '/labelManagement',
                    component: resolve => require(['../components/systemInstall/labelManagement.vue'], resolve),
                    meta: { title: '标签管理' }
                },
                {
                    path: '/informationManagement',
                    component: resolve => require(['../components/systemInstall/informationManagement.vue'], resolve),
                    meta: { title: '资讯管理' }
                },
                {
                    path: '/CarouselManagement',
                    component: resolve => require(['../components/systemInstall/CarouselManagement.vue'], resolve),
                    meta: { title: '轮播图管理' }
                },
                {
                    path: '/systemAffiche',
                    component: resolve => require(['../components/systemInstall/systemAffiche.vue'], resolve),
                    meta: { title: '系统公告' }
                },
                {
                    path: '/log',
                    component: resolve => require(['../components/systemInstall/log.vue'], resolve),
                    meta: { title: '操作日志' }
                },
                {
                    path: '/addSysytem',
                    component: resolve => require(['../components/systemInstall/addSysytem.vue'], resolve),
                    meta: { title: '新增公告' }
                },
                {
                    path: '/summaryofthedata',
                    component: resolve => require(['../components/doctor/summary-of-the-data.vue'], resolve),
                    meta: { title: '数据概况' }
                },
                {
                    path: '/contract-data',
                    component: resolve => require(['../components/doctor/contract-data.vue'], resolve),
                    meta: { title: '签约业绩统计' }
                },
                {
                    path: '/service-performance-statistics',
                    component: resolve => require(['../components/doctor/service-performance-statistics.vue'], resolve),
                    meta: { title: '服务业绩统计' }
                },
                {
                    path: '/service-pack-management',
                    component: resolve => require(['../components/mange/service-pack-management.vue'], resolve),
                    meta: { title: '服务包' }
                },
                {
                    path: '/roleManagement',
                    component: resolve => require(['../components/systemInstall/roleManagement.vue'], resolve),
                    meta: { title: '角色管理' }
                },
                {
                    path: '/agreementManagement',
                    component: resolve => require(['../components/systemInstall/agreementManagement.vue'], resolve),
                    meta: { title: '协议管理' }
                },
                {
                    path: '/massage',
                    component: resolve => require(['../components/massage/message.vue'], resolve),
                    meta: { title: '消息管理' }
                },
            ]
        },
        {
            path: '/login',
            component: resolve => require(['../components/doctor/Login.vue'], resolve)
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
})
